import request from '@/utils/request'

// 查询加班申请列表
export function listOverTime(query) {
  return request({
    url: '/attendance/overTime/list',
    method: 'get',
    params: query
  })
}

// 查询加班申请详细
export function getOverTime(overtimeId) {
  return request({
    url: '/attendance/overTime/' + overtimeId,
    method: 'get'
  })
}

// 新增加班申请
export function addOverTime(data) {
  return request({
    url: '/attendance/overTime',
    method: 'post',
    data: data
  })
}

// 修改加班申请
export function updateOverTime(data) {
  return request({
    url: '/attendance/overTime',
    method: 'put',
    data: data
  })
}

// 删除加班申请
export function delOverTime(overtimeId) {
  return request({
    url: '/attendance/overTime/' + overtimeId,
    method: 'delete'
  })
}
